import EventRoute from '../EventRoute'

const routes: EventRoute[] = []

routes.push(
  new EventRoute('minimize', (api) => {
    api.mainWindow.minimize()
  })
)
//
routes.push(
  new EventRoute('maximize', (api) => {
    api.mainWindow.setFullScreen(true)
  })
)
routes.push(
  new EventRoute('unmaximize', (api) => {
    api.mainWindow.setFullScreen(false)
  })
)

export default routes.map((route) => route.setType('frame'))
